<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminItem/index')}">商品列表</a></li>
        <li><a href="{:url('AdminItem/add')}">添加商品</a></li>
        <li  class="active"><a href=":javascript">编辑商品</a></li>
    </ul>
    <form action="{:url('AdminItem/editPost')}">
        <input type="text" value="{$item.id}" name="id"  hidden>
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="100">商品名<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control"  type="text" style="width: 400px;" name="item_name"
                                   id="item_name" required value="{$item.item_name}" placeholder="请输入商品名"/>
                        </td>
                    </tr>

                    <tr>
                        <th width="100">价格<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" style="width: 400px;" name="price"
                                   id="price" required value="{$item.price}" placeholder="请输入单价"/>
                        </td>
                    </tr>

                </table>
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
                    <a class="btn btn-default" href="{:url('AdminItem/index')}">{:lang('BACK')}</a>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>